<template>
  <textarea id="mytextarea">Hello, World!</textarea>
  <el-button type="primary" @click="getContent">提交</el-button>
</template>

<script>
export default {
  mounted() {
    tinymce.init({
      selector: '#mytextarea',
      height: 600,
      content_style: '#mytextarea {margin-top:30px}'
    });
  },
  methods: {
    getContent() {
      console.log(tinymce.activeEditor.getContent());
    }
  }
};
</script>

<style scoped>
</style>